package com.szzz.gateway.route.entity;

import lombok.Data;
import org.springframework.cloud.gateway.route.RouteDefinition;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.ArrayList;
import java.util.List;

/**
 * 路由实体
 *
 * @author ZhangYin
 */
@Data
public class RouteEntity {

    /**
     * 路由 ID
     */
    private String id;

    /**
     * 路由断言集合
     */
    private List<PredicateEntity> predicates = new ArrayList<>();

    /**
     * 路由过滤器集合
     */
    private List<FilterEntity> filters = new ArrayList<>();

    /**
     * 路由转发的目标uri
     */
    private String uri;

    /**
     * 路由执行的顺序
     */
    private int order = 0;

}
